import './assets/main.scss'

import { createApp } from 'vue'

import ElementPlus from 'element-plus'//引入elementPlus
import  'element-plus/dist/index.css'//引入对应的样式
import router from './router'
import App from './App.vue'
import {createPinia} from 'pinia'
//导入持久化插件
import {createPersistedState} from'pinia-persistedstate-plugin'
import locale from 'element-plus/dist/locale/zh-cn.js'
const pinia=createPinia();
const persist = createPersistedState()
//pinia使用token持久化插件
pinia.use(persist)
const app=createApp(App); 
app.use(ElementPlus,{locale});
app.use(router);
app.use(pinia);
app.mount('#app')